﻿using Firefly.Framework.Windows;
using Firefly.Framework.Windows.Forms;

namespace WindowsExample.Windows
{
    public class DebugInformation
    {
        private Form _form;
        private Label _framesPerSecond;
        private Label _uiElementCount;

        public string FramesPerSecond
        {
            get { return _framesPerSecond.Text; }
            set { _framesPerSecond.Text = value; }
        }
        public string UiElementCount
        {
            get { return _uiElementCount.Text; }
            set { _uiElementCount.Text = value; }
        }

        public DebugInformation()
        {
            _form = (Form)WindowsService.Instance.FindComponent("_debugInformation");
            _framesPerSecond = (Label)_form.FindComponent("_framesPerSecond");
            _uiElementCount = (Label)_form.FindComponent("_uiElementCounts");
        }
    }
}
